<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="verify-v1" content="XgUGkJgI/kpPTm4SlxN9mY7Ekhc0wmGhXmSHTVX5JtY=" />

<?php
	// the code is to fixed the FF bug can't auto display gb2312
	 header("Content-Type: text/html;charset=".$iso[1] );	 
?>
 
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />



	 
<?php mosShowHead(); ?>



<?php
if ( $my->id ) {
	initEditor();
}

$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos

//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
	$user1 = 2;
	$user2 = 2;
	$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
	$user1 = 1;
	$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
	$user2 = 1;
	$colspan = 1;
}

$module_choose = mosCountModules( 'user9' )+ mosCountModules( 'user8');

if($module_choose>0){
	$cole_style="class='ltblue'";
}else{
	$cole_style="class='ltblue'"; //purple
}


//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
	$right = 1;
}
?>

<link href="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/css/template_css.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/topnav/css/menu.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div id="master_container">
	<table border="0" cellpadding="0" cellspacing="0" width="1000">
		<tr>
			<td class="outline">

		  		<div id="header">
					<div id="logo"><a href="<?php echo $mosConfig_live_site;?>/"><img  src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/logo.jpg" /></a></div>
					<div id="banner">					 
							<div id="banner_inner">
								<?php   mosLoadModules( 'banner', -1 ); ?> 
							</div> 
					</div>
		  		</div>
				
				
				<div id="buttons_outer">
		  		  <div id="buttons_inner">
						<div id="buttons">
						<?php mosLoadModules ( 'advert3', -1 ); ?>
						
						</div>
					</div>
		  		</div>
				
				
		  		<div id="search_outer">
		  		  <div id="search_inner">
		  		  <?php mosLoadModules ( 'user4', -1 ); ?>
		  		  </div>
		  		</div>
		  		
			<!----End of Header------------------------>	
			 
			 	<div id="separator">&nbsp;</div>
			
			
			<div id="sub_container">
			
			<?php
				if( $module_choose > 0){
			?>
				<div id="choosed_content_out">
					
				
					<div id="choosed_content">
					<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="695" height="156">
                      <param name="movie" value="/flash/home_04042008.swf" />
                      <param name="quality" value="high" />
					  <param name="wmode" value="transparent" />
                      <embed src="/flash/home_04042008.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="695" height="156"></embed>
					  </object>
						 <table  class="container"  border="0" >
							  <tr>
								<td id="left_side" valign="top">								 
									<?php mosLoadModules ( 'user9', -2 ); ?>														 
								</td>
								<td id="right_side" valign="top">						 
								   <?php mosLoadModules ( 'user8', -2 ); ?>
								</td>
							  </tr>
							 
					  </table>			 
						
						
				  </div>
					
				</div>	
				
			<?php
				 }
				 else{
			?>
				 
			
			
				
				
		  		<div id="left_outer">
		  			<div id="left_inner">
						<div class="sub_nav">
		  					<?php mosLoadModules ( 'left', -2 ); ?>
						</div>	
						<div class="leftbottom">
		  					<?php mosLoadModules ( 'leftbottom', -2 ); ?>
						</div>
		  			</div>
		  		</div>

				
				 
		  		<div id="content_outer">
					<div id="content_inner">
					<div id="pathway_text">
						<?php mosPathWay(); ?>
					</div>

		  			<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
						<tr valign="top">
							<td width="99%">
								<table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">

								<?php
								if ($colspan > 0) {
								?>
									<tr valign="top">
										<?php
				  					if ( $user1 > 0 ) {
				  						?>
				  						<td width="50%">
				  							<div class="user1_inner">
				  							<?php mosLoadModules ( 'user1', -2 ); ?>
				  							</div>
				  						</td>
				  						<?php
				  					}
				  					if ( $colspan == 3) {
										 ?>
											<td width="2">
												<img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="10" width="2" />
											</td>
										<?php
										}
				  					if ( $user2 > 0 ) {
				  						?>
				  						<td width="50%">
				  							<div class="user2_inner">
				  							<?php mosLoadModules ( 'user2', -2 ); ?>
				  							</div>
				  						</td>
				  						<?php
				  					}
										?>
									</tr>
									<tr>
										<td colspan="<?php echo $colspan; ?>">
											<img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="2" width="100" /><br />
										</td>
									</tr>
									<?php
									}
								?>
						 
								<tr>
									<td colspan="<?php echo $colspan; ?>" class="body_outer">
				  					 <?php mosMainBody(); ?>
									</td>
								</tr>
								</table>


							</td>
							

						</tr>
						</table>
						
						<div id="google_ads">
							<?php mosLoadModules ( 'midbottom', -2 ); ?>
						</div>
		  		</div>
		  	</div>
			<?php
				}
			?>	
				
			</div>
			
			
			<div id="right_outer">

			
					<div id="right_inner">
					
							<?php if($module_choose>0){
							?>
								<?php mosLoadModules ( 'home_rb', -2 ); ?>
							<?php
								}
							?>	
					

						<div id="right_module" <?= $cole_style?>>
							<?php mosLoadModules ( 'right', -2 ); ?>
						</div>	
					</div>
			</div>
		  </td>
	 
	  </tr>
  </table>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
<?php mosLoadModules( 'debug', -1 );?>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3703653-2");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>